Put the map in a 1D array